<div class="form-area" id="position-form">
    <form action="/resume/position/<#if (resumePosition.id)??>${resumePosition.id}/</#if>${behaviour}" method="post" id="form-position">
        <input type="hidden" name="method" value="do"/>
        <input type="hidden" name="CSRFToken" value="${CSRFToken!""}"/>
        <table width="100%" class="dj-form-base">
        <colgroup><col width="120">
            <col width="*">
        </colgroup><tbody><tr>
        <th><em>*</em>职务:</th>
        <td class="input">
            <input type="text" value="${(resumePosition.position)!}" maxlength="30" name="position" id="xiaonei-position-input" reg="^.{2,30}$" class="text J_checkInput">
            <div style="display: none; " class="error">请填写校内职务</div>
        </td>
    </tr>
    <tr>
        <th><em>*</em>任职时间:</th>
        <#if (resumePosition.endDate)?? && resumePosition.endDate?string('yyyy-MM-dd') = '2030-01-01'>
            <#assign endYear = ''/>
            <#assign endMonth = ''/>
            <#assign checked= "checked"/>
        <#else>
            <#assign endYear = (resumePosition.endDate?string('yyyy'))!""/>
            <#assign endMonth = (resumePosition.endDate?string('MM'))!""/>
        </#if>
        <td class="input">
            <input type="text" reg="fun:$.formValidateFn.time,work,td" class="text year J_checkInput"
                   id="startdate-year" name="start" maxlength="4" value="${(resumePosition.startDate?string('yyyy'))!""}">

            <span class="input">年</span>
            <input type="text" class="text month" id="startdate-month" name="start" maxlength="2" value="${(resumePosition.startDate?string('MM'))!""}">
            <span class="input">月&nbsp;至</span>
            <input type="text" class="text year" id="enddate-year" name="end" maxlength="4" value="${(endYear)!""}" <#if checked??>disabled </#if>>
            <span class="input">年</span>
            <input type="text" class="text month" id="enddate-month" name="end" maxlength="2" value="${(endMonth)!""}" <#if checked??>disabled </#if>>
            <span class="input">月</span>
            <input type="checkbox" class="checkbox radio" name="withoutEnd" value="present"
                   id="enddate-present-checkbox" <#if checked??>checked</#if>>
            <span class="checkbox f12" for="enddate-present-checkbox">至今</span>
            <div style="display: none; " class="error">请填写正确的时间</div>
        </td>
    </tr>
    <tr>
        <th><em>*</em>所在学校:</th>
        <td class="input">
            <select name="schoolName" id="xiaonei-school-select" class="J_checkInput">
                <option value="">请选择</option>
                <#list resumeHelper.edus() as edu>
                    <option value="${edu.schoolName}"<#if resumePosition.schoolName?? && edu.schoolName==resumePosition.schoolName>
                            selected</#if>>${edu.schoolName}</option>
                </#list>
            </select>
            <div style="display: none; " class="error">请选择学校</div>
        </td>
    </tr>
    <tr>
        <th>职责和业绩:</th>
        <td class="input textarea-box"><textarea id="task-merit" class="textarea-con edit-textarea J_checkInput" blankvalue="描述你在校期间所任职务的职责和业绩（限400字）" blanksubmit="true" blankclass="g9" reg="^.{0,400}$"  name="descr" maxnum="400"><#if resumePosition.descr??>${resumePosition.descr}</#if></textarea>
            <p class="textarea-check-tip"><span class="J_lastNum g9"><span>0</span>/400</span></p>
        </td>
    </tr>
    <tr>
        <th>&nbsp;</th>
        <td class="input button">
            <a href="javascript:void(0);" class="fresh formValidateSubmit margin"id="J_formSubmit" itemtype="position"><span>保存</span></a><a href="javascript:void(0);" class="normal J_cancel" itemtype="position"><span>取消</span></a>
        </td>
    </tr>
    </tbody>
    </table>
    </form>
</div>